package com.htl.exampro.exam.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-26
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ExamDO", description = "考试表")
public class ExamVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 考试ID
     */
    @Schema(description = "考试ID")
    private String examId;

    /**
     * 考试名称
     */
    @Schema(description = "考试名称")
    private String examName;

    /**
     * 试卷ID
     */
    @Schema(description = "试卷ID")
    private String paperId;

    /**
     * 考试说明（如：包含章节范围、题型分布等）
     */
    @Schema(description = "考试说明（如：包含章节范围、题型分布等）")
    private String description;

    /**
     * 交卷标志（Y/N）
     */
    @Schema(description = "交卷标志（Y/N）")
    private String isSubmit;

    /**
     * 考试状态ID
     */
    @Schema(description = "考试状态ID")
    private Integer statusId;

    /**
     * 考试开始时间
     */
    @Schema(description = "考试开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 考试结束时间
     */
    @Schema(description = "考试结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 考试时长(分钟)
     */
    @Schema(description = "考试时长(分钟)")
    private Integer duration;

    /**
     * 考试总分
     */
    @Schema(description = "考试总分")
    private Integer totalScore;

    /**
     * 父考试ID（用于创建多级考试结构）
     */
    @Schema(description = "父考试ID（用于创建多级考试结构）")
    private String parentExamId;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createdPerson;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private String updatedPerson;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
